#include <bits/stdc++.h>
using namespace std;

string s1, s2;
int main()
{
    cin >> s1 >> s2;
    int hash[26] = { 0 };
    for (int i = 0; i < s1.size(); i++)
        hash[s1[i] - 'A']++;
    bool ret = false;
    for (auto ch : s2)
    {
        if (--hash[ch - 'A'] < 0)
        {
            ret = true;
            break;
        }
    }

    cout << (ret == true ? "No" : "Yes") << endl;
    return 0;
}